|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.micromegacorp.math.v3_spi.Float32
public class Float32
Field Summary | |
---|---|
int |
high
|
int |
low
|
protected static java.lang.String |
notReset
|
protected static java.lang.StringBuffer |
sbuf
|
Constructor Summary | |
---|---|
Float32()
Create a new FpuData object initialized to zero. |
|
Float32(Float32 fnum)
Create a new Float32 initialized to the value of another
Float32 . |
|
Float32(int num)
Create a new Float32 initialized to the value of a 16-bit
integer. |
|
Float32(int high,
int low)
Create a new Float32 initialized to the floating point value
contained in two 16-bit integers. |
Method Summary | |
---|---|
Float32 |
add(Float32 fnum)
Add another Float32 to this Float32 . |
Float32 |
add(int num)
Add a 16-bit integer value to this Float32 . |
Float32 |
add(int high,
int low)
Add the floating point value contained in two 16-bit integers to this Float32 . |
Float32 |
divide(Float32 fnum)
Divide this Float32 by another Float32 . |
Float32 |
divide(int num)
Divide this floating point number by a 16-bit integer. |
Float32 |
divide(int high,
int low)
Divide this Float32 by the floating point value contained
in two 16-bit integers. |
protected void |
loadA()
|
protected void |
loadB(int high,
int low)
|
protected void |
loadC(int num)
|
Float32 |
multiply(Float32 fnum)
Multiply this Float32 by another Float32 . |
Float32 |
multiply(int num)
Multiply this Float32 by a 16-bit integer. |
Float32 |
multiply(int high,
int low)
Multiply this Float32 by the floating point value contained
in two 16-bit integers. |
Float32 |
read()
Read 32-bit floating point value from FPU register A. |
Float32 |
read(int reg)
Read 32-bit floating point value from FPU register. |
protected Float32 |
saveA(int opcode)
|
Float32 |
set(Float32 fnum)
Set Float32 to the value of another Float32 . |
Float32 |
set(int num)
Set Float32 to the value of a 16-bit integer. |
Float32 |
set(int high,
int low)
Set Float32 to the floating point value contained in two
16-bit integers. |
Float32 |
set(java.lang.String s)
Set Float32 to the floating point value represented by a
String . |
Float32 |
set(java.lang.StringBuffer sb)
Set Float32 to the floating point value represented by a
StringBuffer . |
Float32 |
subtract(Float32 fnum)
Subtract another Float32 from this Float32 . |
Float32 |
subtract(int num)
Subtract a 16-bit integer from this Float32 . |
Float32 |
subtract(int high,
int low)
Subtract the floating point value contained in two 16-bit integers from this Float32 . |
protected char |
toHex(int n)
|
java.lang.String |
toHexString()
Convert FpuData value to a hexadecimal string. |
java.lang.String |
toString()
Convert value of this Float32 to a String . |
void |
write()
Write 32-bit floating point value to the FPU register A. |
void |
write(int reg)
Write 32-bit floating point value to the FPU register. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int high
public int low
protected static final java.lang.String notReset
protected static java.lang.StringBuffer sbuf
Constructor Detail |
---|
public Float32()
public Float32(Float32 fnum)
Float32
initialized to the value of another
Float32
.
fnum
- Float32
number.public Float32(int high, int low)
Float32
initialized to the floating point value
contained in two 16-bit integers.
high
- high 16 bits of floating point value.low
- low 16 bits of floating point value.public Float32(int num)
Float32
initialized to the value of a 16-bit
integer.
num
- 16-bit integer value (sign extended).Method Detail |
---|
public Float32 set(Float32 fnum)
Float32
to the value of another Float32
.
fnum
- Float32
number.
Float32
reference to result.public Float32 set(int high, int low)
Float32
to the floating point value contained in two
16-bit integers.
high
- high 16 bits of floating point value.low
- low 16 bits of floating point value.
Float32
reference to result.public Float32 set(int num)
Float32
to the value of a 16-bit integer.
num
- 16-bit integer value (sign extended).
Float32
reference to result.public Float32 set(java.lang.String s)
Float32
to the floating point value represented by a
String
.
s
- String
representing the floating point value.
Float32
reference to result.public Float32 set(java.lang.StringBuffer sb)
Float32
to the floating point value represented by a
StringBuffer
.
sb
- StringBuffer
representing the floating point value.
Float32
reference to result.public Float32 add(Float32 fnum)
Float32
to this Float32
.
fnum
- Float32
to add.
Float32
reference to result.public Float32 add(int high, int low)
Float32
.
high
- high 16 bits of floating point value to add.low
- low 16 bits of floating point value to add.
Float32
reference to result.public Float32 add(int num)
Float32
.
num
- 16-bit integer value (sign extended) to add.
Float32
reference to result.public Float32 subtract(Float32 fnum)
Float32
from this Float32
.
fnum
- Float32
to subtract.
Float32
reference to result.public Float32 subtract(int high, int low)
Float32
.
high
- high 16 bits of floating point value to subtract.low
- low 16 bits of floating point value to subtract.
Float32
reference to result.public Float32 subtract(int num)
Float32
.
num
- 16-bit integer value (sign extended) to subtract.
Float32
reference to result.public Float32 multiply(Float32 fnum)
Float32
by another Float32
.
fnum
- Float32
multiplier.
Float32
reference to result.public Float32 multiply(int high, int low)
Float32
by the floating point value contained
in two 16-bit integers.
high
- high 16 bits of floating point multiplier.low
- low 16 bits of floating point multiplier.
Float32
reference to result.public Float32 multiply(int num)
Float32
by a 16-bit integer.
num
- 16-bit integer (sign extended) multiplier.
Float32
reference to result.public Float32 divide(Float32 fnum)
Float32
by another Float32
.
fnum
- Float32
divisor.
Float32
reference to result.public Float32 divide(int high, int low)
Float32
by the floating point value contained
in two 16-bit integers.
high
- high 16 bits of floating point divisor.low
- low 16 bits of floating point divisor.
Float32
reference to result.public Float32 divide(int num)
num
- 16-bit integer divisor (sign extended).
Float32
reference to result.public void write()
public void write(int reg)
reg
- register value.public Float32 read()
public Float32 read(int reg)
reg
- register value.
public java.lang.String toString()
Float32
to a String
.
toString
in class java.lang.Object
String
representation of Float32
.public java.lang.String toHexString()
FpuData
value to a hexadecimal string.
FpuData
value.protected void loadA()
protected void loadB(int high, int low)
protected void loadC(int num)
protected Float32 saveA(int opcode)
protected char toHex(int n)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |